export const hasRoleCode = (teamList: any[], isUserRole: any[]): boolean => {
  if (!teamList.length) return false;
  const roleCodes = teamList.map(item => {
    return item.roleCode;
  });
  const isCheck = isUserRole.every(i => {
    return roleCodes.includes(String(i));
  });
  return isCheck;
};
